package com.asia5b.a5mall.middleware.model.order

import com.asia5b.a5mall.middleware.model.base.BaseModel
import com.asia5b.a5mall.middleware.model.shop.AbsGoodsModel
import com.google.gson.annotations.SerializedName

/**
 * Created by zhangyuncai on 2020/3/23.
 */

class DiffDetailModel: BaseModel() {

    var create_time=0L

    //地址id
    val address_id = 0

    //地址名称
    val address_name = ""


    //综合费用
    val cost_charge: ChargeBean? = null

    //保证金(保险费)
    val cost_guarantee_charge: ChargeBean? = null

    //保证金列表
    val guarantee_charge: ArrayList<ChargeBean>? = null

    //国际费用
    val cost_international_charge: ChargeBean? = null

    //国际运费列表
    val international_charge: ArrayList<ChargeBean>? = null

    //本地费用
    val cost_local_charge: ChargeBean? = null

    //本地费用列表
    val local_charge: ArrayList<ChargeBean>? = null

    //打包费用
    val cost_pack_charge: ChargeBean? = null

    //打包费用
    val pack_charge: ArrayList<ChargeBean>? = null

    //木架费
    val cost_wooden_charge: ChargeBean? = null

    //木架费列表
    val wooden_charge: ArrayList<ChargeBean>? = null

    //商品列表
    val express_list: ArrayList<ExpressBean>? = null

    //空运形形式
    val international_type = ""


    //空运类型
    val kongyun = 0

    //本地类型
    val local_type = 0

    //订单号
    val order_sn = ""


    //收件人
    val ship_name = ""


    //收件人号码
    val ship_tel = ""

}

/*
运费详情
 */
class ChargeBean :BaseModel(){
    //订单code
    val main_order_code = ""
    val charge = 0.0
    val charge_list: HashMap<String, Double>? = null
}

class ExpressBean:BaseModel() {
    val express_sn = ""

    @SerializedName(value = "goods_list", alternate = ["good_list"])
    val goods_list: ArrayList<AbsGoodsModel>? = null
}

/*
{
  "code": 200,
  "msg": "操作成功！",
  "data": {
    "traits": false,
    "international_charge": [
      {
        "main_order_code": "2020226626410652-1",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-1/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-2/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      }
    ],
    "pack_charge": [
      {
        "main_order_code": "2020226626410652-1",
        "charge": 10.0,
        "charge_list": {
          "price_rmb": 10.0,
          "price_myr": 6.25,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-1/2",
        "charge": 111.0,
        "charge_list": {
          "price_rmb": 111.0,
          "price_myr": 69.38,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-2/2",
        "charge": 22.0,
        "charge_list": {
          "price_rmb": 22.0,
          "price_myr": 13.75,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      }
    ],
    "address_id": 54,
    "international_type": "空运 （普通货）",
    "cost_guarantee_charge": {
      "main_order_code": "",
      "charge": 0.0,
      "charge_list": {
        "price_rmb": 0.0,
        "price_myr": 0.0,
        "price_thb": 0.0,
        "price_idr": 0.0,
        "price_vnd": 0.0,
        "price_php": 0.0
      }
    },
    "cost_wooden_charge": {
      "main_order_code": "",
      "charge": 10.0,
      "charge_list": {
        "price_rmb": 10.0,
        "price_myr": 6.25,
        "price_thb": 0.0,
        "price_idr": 0.0,
        "price_vnd": 0.0,
        "price_php": 0.0
      }
    },
    "address_name": "马来西亚（Malaysia）Pulau PinangBukit Mertajam广汕二路60号",
    "ship_tel": "18888888888",
    "wooden_charge": [
      {
        "main_order_code": "2020226626410652-1",
        "charge": 10.0,
        "charge_list": {
          "price_rmb": 10.0,
          "price_myr": 6.25,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-1/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-2/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      }
    ],
    "cost_local_charge": {
      "main_order_code": "",
      "charge": 0.0,
      "charge_list": {
        "price_rmb": 0.0,
        "price_myr": 0.0,
        "price_thb": 0.0,
        "price_idr": 0.0,
        "price_vnd": 0.0,
        "price_php": 0.0
      }
    },
    "cost_charge": {
      "main_order_code": "",
      "charge": 394.92,
      "charge_list": {
        "price_rmb": 394.92,
        "price_myr": 246.83,
        "price_thb": 0.0,
        "price_idr": 0.0,
        "price_vnd": 0.0,
        "price_php": 0.0
      }
    },
    "cost_international_charge": {
      "main_order_code": "",
      "charge": 241.92,
      "charge_list": {
        "price_rmb": 241.92,
        "price_myr": 151.2,
        "price_thb": 0.0,
        "price_idr": 0.0,
        "price_vnd": 0.0,
        "price_php": 0.0
      }
    },
    "kongyun": 0,
    "guarantee_charge": [
      {
        "main_order_code": "2020226626410652-1",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-1/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-2/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      }
    ],
    "local_type": 2,
    "ship_name": "啊啊啊",
    "express_list": [
      {
        "express_sn": "a5bmall15847734195",
        "goods_list": [
          {
            "item_id": null,
            "seller_id": 64,
            "seller_name": "全广州最靓的店",
            "goods_id": 8536,
            "sku_id": 25585,
            "sku_sn": "ABC016",
            "cat_id": 698,
            "num": 5,
            "goods_weight": 1.2,
            "original_price": 35.0,
            "original_price_list": {
              "price_rmb": 35.0,
              "price_myr": 21.88,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "purchase_price": 35.0,
            "purchase_price_list": {
              "price_rmb": 35.0,
              "price_myr": 21.88,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "subtotal": 3500.0,
            "subtotal_list": {
              "price_rmb": 3500.0,
              "price_myr": 2187.5,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "name": "库存第三十五次测试",
            "goods_image": "http://47.88.173.86:82/testShopImg/20200309/8281C690885945DA9A45300285228EC4_300x300.jpeg",
            "spec_list": [
              {
                "spec_id": 2659,
                "spec_value": "黄色",
                "seller_id": null,
                "spec_name": "Colour",
                "sku_id": null,
                "big": "http://47.88.173.86:82/testShopImg/20200309/CC0BB4C4F331454F89300867C0A278E4_800x800.jpeg",
                "small": "http://47.88.173.86:82/testShopImg/20200309/CC0BB4C4F331454F89300867C0A278E4_400x400.jpeg",
                "thumbnail": "http://47.88.173.86:82/testShopImg/20200309/CC0BB4C4F331454F89300867C0A278E4_300x300.jpeg",
                "tiny": null,
                "spec_type": 1,
                "spec_image": "http://47.88.173.86:82/testShopImg/20200309/CC0BB4C4F331454F89300867C0A278E4.jpeg",
                "spec_value_id": 10267
              },
              {
                "spec_id": 2660,
                "spec_value": "750ml (1 套 = 20 件)",
                "seller_id": null,
                "spec_name": "Volume &amp; Pack",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10264
              },
              {
                "spec_id": 2661,
                "spec_value": "送黑色布袋 + 吸管",
                "seller_id": null,
                "spec_name": "Fee Gift",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10263
              }
            ],
            "point": null,
            "snapshot_id": 3817,
            "service_status": "NOT_APPLY",
            "single_list": [],
            "group_list": [],
            "goods_operate_allowable_vo": null,
            "promotion_tags": [],
            "purchase_num": 0,
            "actual_pay_total": 3500.0,
            "actual_pay_total_list": {
              "price_rmb": 3500.0,
              "price_myr": 2187.5,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "units_number": 20,
            "total_number": 100,
            "sn": null,
            "enable_quantity": 320,
            "traits": false,
            "traits_name": "正常"
          }
        ],
        "fee_list": [
          {
            "size": "30*30*30",
            "mainordercode": "2020226626410652-1",
            "id": 765,
            "net_weight": "20.31",
            "volume_weight": "0.0270"
          }
        ]
      },
      {
        "express_sn": "a5bmall15847735039",
        "goods_list": [
          {
            "item_id": null,
            "seller_id": 64,
            "seller_name": "全广州最靓的店",
            "goods_id": 8547,
            "sku_id": 25650,
            "sku_sn": "ABC008",
            "cat_id": 698,
            "num": 5,
            "goods_weight": 1.2,
            "original_price": 27.0,
            "original_price_list": {
              "price_rmb": 27.0,
              "price_myr": 16.88,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "purchase_price": 27.0,
            "purchase_price_list": {
              "price_rmb": 27.0,
              "price_myr": 16.88,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "subtotal": 3375.0,
            "subtotal_list": {
              "price_rmb": 3375.0,
              "price_myr": 2109.38,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "name": "库存第三十六次测试",
            "goods_image": "http://47.88.173.86:82/testShopImg/20200320/B3DDA848BF464433B91441D84CAEDBA4_300x300.jpeg",
            "spec_list": [
              {
                "spec_id": 2659,
                "spec_value": "浅蓝色",
                "seller_id": null,
                "spec_name": "Colour",
                "sku_id": null,
                "big": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_800x800.jpeg",
                "small": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_400x400.jpeg",
                "thumbnail": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_300x300.jpeg",
                "tiny": null,
                "spec_type": 1,
                "spec_image": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8.jpeg",
                "spec_value_id": 10266
              },
              {
                "spec_id": 2660,
                "spec_value": "500ml (1 套 = 25 件)",
                "seller_id": null,
                "spec_name": "Volume &amp; Pack",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10261
              },
              {
                "spec_id": 2661,
                "spec_value": "送黑色布袋 + 吸管",
                "seller_id": null,
                "spec_name": "Fee Gift",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10263
              }
            ],
            "point": null,
            "snapshot_id": 3810,
            "service_status": "NOT_APPLY",
            "single_list": [],
            "group_list": [],
            "goods_operate_allowable_vo": null,
            "promotion_tags": [],
            "purchase_num": 0,
            "actual_pay_total": 3375.0,
            "actual_pay_total_list": {
              "price_rmb": 3375.0,
              "price_myr": 2109.38,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "units_number": 25,
            "total_number": 125,
            "sn": null,
            "enable_quantity": 0,
            "traits": false,
            "traits_name": "正常"
          }
        ],
        "fee_list": [
          {
            "size": "11*11*11",
            "mainordercode": "2020226626410652-1/2",
            "id": 769,
            "net_weight": "1",
            "volume_weight": "0.0013"
          }
        ]
      },
      {
        "express_sn": "a5bmall15847735038",
        "goods_list": [
          {
            "item_id": null,
            "seller_id": 64,
            "seller_name": "全广州最靓的店",
            "goods_id": 8547,
            "sku_id": 25652,
            "sku_sn": "ABC010",
            "cat_id": 698,
            "num": 5,
            "goods_weight": 1.2,
            "original_price": 29.0,
            "original_price_list": {
              "price_rmb": 29.0,
              "price_myr": 18.13,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "purchase_price": 29.0,
            "purchase_price_list": {
              "price_rmb": 29.0,
              "price_myr": 18.13,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "subtotal": 2900.0,
            "subtotal_list": {
              "price_rmb": 2900.0,
              "price_myr": 1812.5,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "name": "库存第三十六次测试",
            "goods_image": "http://47.88.173.86:82/testShopImg/20200320/B3DDA848BF464433B91441D84CAEDBA4_300x300.jpeg",
            "spec_list": [
              {
                "spec_id": 2659,
                "spec_value": "浅蓝色",
                "seller_id": null,
                "spec_name": "Colour",
                "sku_id": null,
                "big": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_800x800.jpeg",
                "small": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_400x400.jpeg",
                "thumbnail": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_300x300.jpeg",
                "tiny": null,
                "spec_type": 1,
                "spec_image": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8.jpeg",
                "spec_value_id": 10266
              },
              {
                "spec_id": 2660,
                "spec_value": "750ml (1 套 = 20 件)",
                "seller_id": null,
                "spec_name": "Volume &amp; Pack",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10264
              },
              {
                "spec_id": 2661,
                "spec_value": "送黑色布袋 + 吸管",
                "seller_id": null,
                "spec_name": "Fee Gift",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10263
              }
            ],
            "point": null,
            "snapshot_id": 3811,
            "service_status": "NOT_APPLY",
            "single_list": [],
            "group_list": [],
            "goods_operate_allowable_vo": null,
            "promotion_tags": [],
            "purchase_num": 0,
            "actual_pay_total": 2900.0,
            "actual_pay_total_list": {
              "price_rmb": 2900.0,
              "price_myr": 1812.5,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "units_number": 20,
            "total_number": 100,
            "sn": null,
            "enable_quantity": 0,
            "traits": false,
            "traits_name": "正常"
          }
        ],
        "fee_list": [
          {
            "size": "11*11*11",
            "mainordercode": "2020226626410652-2/2",
            "id": 770,
            "net_weight": "1",
            "volume_weight": "0.0013"
          }
        ]
      },
      {
        "express_sn": "a5bmall15847735051",
        "goods_list": [
          {
            "item_id": null,
            "seller_id": 64,
            "seller_name": "全广州最靓的店",
            "goods_id": 8547,
            "sku_id": 25653,
            "sku_sn": "ABC011",
            "cat_id": 698,
            "num": 5,
            "goods_weight": 1.2,
            "original_price": 30.0,
            "original_price_list": {
              "price_rmb": 30.0,
              "price_myr": 18.75,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "purchase_price": 30.0,
            "purchase_price_list": {
              "price_rmb": 30.0,
              "price_myr": 18.75,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "subtotal": 3000.0,
            "subtotal_list": {
              "price_rmb": 3000.0,
              "price_myr": 1875.0,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "name": "库存第三十六次测试",
            "goods_image": "http://47.88.173.86:82/testShopImg/20200320/B3DDA848BF464433B91441D84CAEDBA4_300x300.jpeg",
            "spec_list": [
              {
                "spec_id": 2659,
                "spec_value": "浅蓝色",
                "seller_id": null,
                "spec_name": "Colour",
                "sku_id": null,
                "big": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_800x800.jpeg",
                "small": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_400x400.jpeg",
                "thumbnail": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8_300x300.jpeg",
                "tiny": null,
                "spec_type": 1,
                "spec_image": "http://47.88.173.86:82/testShopImg/20200320/1E4E8CB6691745EB9B8C4E5AC82394F8.jpeg",
                "spec_value_id": 10266
              },
              {
                "spec_id": 2660,
                "spec_value": "800ml (1 套 = 20 件)",
                "seller_id": null,
                "spec_name": "Volume &amp; Pack",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10265
              },
              {
                "spec_id": 2661,
                "spec_value": "送白色布袋 + 吸管",
                "seller_id": null,
                "spec_name": "Fee Gift",
                "sku_id": null,
                "big": null,
                "small": null,
                "thumbnail": null,
                "tiny": null,
                "spec_type": null,
                "spec_image": "",
                "spec_value_id": 10262
              }
            ],
            "point": null,
            "snapshot_id": 3812,
            "service_status": "NOT_APPLY",
            "single_list": [],
            "group_list": [],
            "goods_operate_allowable_vo": null,
            "promotion_tags": [],
            "purchase_num": 0,
            "actual_pay_total": 3000.0,
            "actual_pay_total_list": {
              "price_rmb": 3000.0,
              "price_myr": 1875.0,
              "price_thb": 0.0,
              "price_idr": 0.0,
              "price_vnd": 0.0,
              "price_php": 0.0
            },
            "units_number": 20,
            "total_number": 100,
            "sn": null,
            "enable_quantity": 0,
            "traits": false,
            "traits_name": "正常"
          }
        ],
        "fee_list": [
          {
            "size": "11*11*11",
            "mainordercode": "2020226626410652-2/2",
            "id": 771,
            "net_weight": "1",
            "volume_weight": "0.0013"
          }
        ]
      }
    ],
    "order_sn": "20200321551108603943",
    "country_id": 12,
    "cost_pack_charge": {
      "main_order_code": "",
      "charge": 143.0,
      "charge_list": {
        "price_rmb": 143.0,
        "price_myr": 89.38,
        "price_thb": 0.0,
        "price_idr": 0.0,
        "price_vnd": 0.0,
        "price_php": 0.0
      }
    },
    "local_charge": [
      {
        "main_order_code": "2020226626410652-1",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-1/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      },
      {
        "main_order_code": "2020226626410652-2/2",
        "charge": 0.0,
        "charge_list": {
          "price_rmb": 0.0,
          "price_myr": 0.0,
          "price_thb": 0.0,
          "price_idr": 0.0,
          "price_vnd": 0.0,
          "price_php": 0.0
        }
      }
    ]
  }
}
 */